import client from './client';

export interface ServerStatus {
  running: boolean;
  uptime: number;
  version: string;
}

export const getServerStatus = () => client.get('/server/status');

export const startServer = () => client.post('/server/start');

export const stopServer = () => client.post('/server/stop');

export const restartServer = () => client.post('/server/restart');

export const getServerConfig = () => client.get('/server/config');

export const updateServerConfig = (config: any) => 
  client.put('/server/config', config);
